<form action="" id="myform">
<div id="inline5">
    <h2><span>详细信息</span></h2>
    <table>
        <tr><th colspan="3">回款计划：</th></tr>
        <tr>
            <td class="name" width="100" >客户：</td>
            <td>&nbsp;</td>
            <td id="customer_name"><?= $payment_plans->customer_name?></td>
        </tr>
        <tr>
            <td class="name" width="100">合同/订单：</td>
            <td>&nbsp;</td>
            <td><?= $payment_plans->contract_subject?></td>
        </tr>
        <tr>
            <td class="name" width="100">计划回款日期：</td>
            <?php $payment_time = substr ( $payment_plans->payment_time, 0, 10 );?>
            <td>&nbsp;</td>
            <td ><?= $payment_time?></td>
        </tr>
        <tr>
            <td class="name" width="100" >期次：</td>
            <td>&nbsp;</td>
            <td><?= $payment_plans->stages?></td>
        </tr>
        <?php foreach($stages as $stage):?>
        <tr>
            <td class="name" width="100">金额：</td>
            <td>&nbsp;</td>
            <?php 
            $datatime = strtotime($stage->stages_payment_time);
            $stages_payment_time = date( "Y-m-d",$datatime);
            ?>
            <td><?= $stage->money?>万元&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $stages_payment_time;?></td>
        </tr>
        <?php endforeach;?>
        <tr>
            <td class="name" width="100">所有者：</td>
            <td>&nbsp;</td>
            <td><?= $payment_plans->user_name?></td>
        </tr>
        <tr><td colspan="2">&nbsp;</td></tr>
    </table>
</div>
</form>